
<div>
    <form method="post" action="<?php echo $this->Html->url('/home/searchproperty'); ?>">
        <div id="h_container_search">
            <h4><?php echo __('Search Propertyes');?></h4>
            <?php
            echo $this->Form->input('Search.category', array(
                'label' => false,
                'type' => 'select',
                'options' => $this->requestAction('Common/search'),
                'class' => 'h_width_category',
                'div' => false
            ));
            ?>
            <?php
            echo $this->Form->input('Search.location', array(
                'label' => false,
                'type' => 'select',
                'options' => array('' => __('Location'), 37 => __('Ho Chi Minh City'), 38 => __('Ha Noi')),
                'class' => 'h_width_location',
                'div' => false
            ));
            ?>
            <?php
            echo $this->Form->input('Search.min_price', array(
                'label' => false,
                'type' => 'select',
                'options' => $this->requestAction('Common/searchOfficeMinPrice'),
                'class' => 'h_width_bed_fix',
                'div' => false
            ));
            ?>
            <?php
            echo $this->Form->input('Search.max_price', array(
                'label' => false,
                'type' => 'select',
                'options' => $this->requestAction('Common/searchOfficeMaxPrice'),
                'class' => 'h_width_bed_fix',
                'div' => false
            ));
            ?>

            <?php
            echo $this->Form->input('Search.size_min', array(
                'label' => false,
                'type' => 'select',
                'options' => $this->requestAction('Common/searchOfficeMinSize'),
                'class' => 'h_width_bed_fix',
                'div' => false
            ));
            echo $this->Form->input('Search.size_max', array(
                'label' => false,
                'type' => 'select',
                'options' => $this->requestAction('Common/searchOfficeMaxSize'),
                'class' => 'h_width_bed_fix',
                'div' => false
            ));
            ?>
            <?php
            echo $this->Form->input('Search.search_name', array(
                'label' => false,
                'type' => 'text',
                'class' => 'h_width_search',
                'div' => false
            ));
            ?>
            <button type="submit" class="btn btn-danger h_button_search" ><?php echo __('Search');?></button>

        </div>
		<?php echo $this->element('location_filter');?>
</form>
</div>